// TypeScript file
module Fighter {

    /**
     * 字幕跳出效果——郭启航
     */
    export class SubtitleJumped extends eui.Component {

        constructor() {
            super();

        }

        public SubtitleJumped(money: number, point: any) {
            var MoneyText: eui.Label = new eui.Label();//文本
            MoneyText.text = "-" + money;   
            MoneyText.x = point.x;
            MoneyText.y = point.y;
            this.addChild(MoneyText);
            var Tween = egret.Tween.get(MoneyText).to({ x: point.x, y: point.y - 100 }, 500).call(() => { this.removeChild(MoneyText) })

        }
    }
}